<?php
	require_once('../includes/config.php');
	if(isset($_POST['id'])){
		$id = $_POST['id'];
		$sql = "SELECT * FROM tbl_product WHERE id = '$id'";
		$result = mysql_query("$sql");
		if(mysql_num_rows($result)){
			echo "<p>Product id already exist</p>";
		}
		else echo 1;
	}
?>